package com.jd;


import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

/**
 * 打包war添加的启动类
 */
public class WarStarterApplication extends SpringBootServletInitializer{

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        //指向application这个springboot 启动类
        return builder.sources(Application.class);
    }
}
